package com.cheboohui.iqs.spider.login;

import org.apache.http.client.protocol.HttpClientContext;
import org.apache.http.impl.client.CloseableHttpClient;

/**
 * 平安爬虫登录情况实体类
 * 
 * @author xielonghai
 *
 */
public class LoginEntity {

	/**
	 * 状态
	 */
	private boolean state;

	/**
	 * 验证码
	 */
	private String orderNo;

	private CloseableHttpClient httpClient;

	private HttpClientContext httpContext;

	public LoginEntity(String orderNo, CloseableHttpClient httpClient, HttpClientContext httpContext) {
		this.state = true;
		this.orderNo = orderNo;
		this.httpClient = httpClient;
		this.httpContext = httpContext;
	}

	public LoginEntity() {
		this.state = false;
	}

	public boolean isState() {
		return state;
	}

	public void setState(boolean state) {
		this.state = state;
	}

	public String getOrderNo() {
		return orderNo;
	}

	public void setOrderNo(String orderNo) {
		this.orderNo = orderNo;
	}

	public CloseableHttpClient getHttpClient() {
		return httpClient;
	}

	public void setHttpClient(CloseableHttpClient httpClient) {
		this.httpClient = httpClient;
	}

	public HttpClientContext getHttpContext() {
		return httpContext;
	}

	public void setHttpContext(HttpClientContext httpContext) {
		this.httpContext = httpContext;
	}

	@Override
	public String toString() {
		return "平安爬虫登录情况实体类 [状态=" + state + ", 验证码=" + orderNo + "]";
	}

}
